package com.chensheng.enums;

import lombok.Getter;

/**
 * @Author:ChenSheng
 * @Description:
 * @Date: Created in 上午 7:26 2018/5/14 0014
 */
@Getter
public enum ResultErrorEnum implements CodeEnum{

    TEST_ERROR(100, "用于测试的失败"),

    FORM_PARAMS_ERROR(110, "表单提交错误"),

    CART_EMPTY_ERROR(120, "购物车为空"),

    PRODUCT_NOT_EXIST_ERROR(130, "产品不存在"),

    PRODUCT_STOCK_NOTAVAIL_ERROR(140, "产品库存不足"),

    OPENID_EMPTY_ERROR(150, "Openid为空"),

    ORDER_OWNER_ERROR(160, "订单的openid不一致"),

    ORDER_NOT_EXIST_ERROR(170, "订单不存在"),

    ORDER_STATUS_ERROR(180, "订单状态不正确"),

    ORDER_DETAIL_NOT_EXIST_ERROR(190, "order_detail不存在"),

    WX_MP_ERROR(200, "微信公众账号错误"),

    WXPAY_NOTIFY_MONEY_VERIFY_ERROR(210, "微信支付异步通知金额校验不通过"),

    ORDER_PAY_STATUS_ERROR(220, "订单支付状态不正确"),

    ORDER_CANCEL_SUCCESS(230, "订单取消成功"),

    ORDER_FINISH_SUCCESS(240, "订单完结成功"),

    PRODUCT_STATUS_ERROR(250, "产品状态不正确"),

    LOGOUT_SUCCESS(260, "登出成功"),

    ;

    private Integer code;

    private String msg;

    ResultErrorEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
